<div style="padding:10px">
	<h1>Klassen</h1>
	<h2>{$project.project_name} / {$extension.ext_name}</h2>
	
	
	<table style="border-collapse:collapse;margin-left:auto;margin-right:auto;width:50%">
		<tr style="background-color:#000;color:#fff;font-weight:bold;border: 1px #000 solid">
			<td style="width:16px"> </td>
			<td>Klassenname</td>
			<td style="width:16px"> </td>
		</tr>
	{foreach from=$classes item="class"}
		<tr>
			<td style="border: 1px #000 solid"><img src="{$class.icon}" border="0" /></td>
			<td style="border: 1px #000 solid">{$class.class_name}</td>
			<td style="border: 1px #000 solid">
				<a href="javascript:void(0)" onclick="{strip}if (confirm('Soll die Klasse {$class.class_name} wirklich gelöscht werden?\n\nAlle Objekte dieser Klasse und die 
				Konfiguration in Datenbank und Dateisystem werden ebenfalls unwiederbringlich gelöscht.')) {literal}
	xajax.request(
	{
		ccdsfun:'ClassEditorClassDelete',
		ccdsclass:'ccdsClassEditor'
	},{	
		parameters:[{{/literal}
		class_id:{$class.class_id}
		{literal}}]
	});
	{/literal}{/strip}">
					<img src="img/delete.png" border="0" alt="löschen" title="löschen" />
				</a>
			</td>
		</tr>
	{/foreach}
	</table>
	
	
	<h1>neue Klasse anlegen</h1>
	<form id="form_ext_new_{$project.project_id}" action="" onsubmit="return false;">
		<input type="hidden" name="project_id" value="{$project.project_id}">
		<input type="hidden" name="ext_id" value="{$extension.ext_id}">
		<label for="class_name_{$project.project_id}">Name</label>
		<input type="text" id="class_name_{$project.project_id}" name="class_name" />
		<span id="class_name_error_{$project.project_id}"></span>
		<br />
		<input type="submit" value="anlegen"  onclick="{strip}{literal}
	xajax.request(
	{
		ccdsfun:'ClassEditorClassAdd',
		ccdsclass:'ccdsClassEditor'
	},{	
		parameters:[{/literal}
		xajax.getFormValues('form_ext_new_{$project.project_id}')	
		{literal}]
	});
	{/literal}{/strip}"/>
	
	</form>
</div>